home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / AquaShade / main.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-23  |  970 b   |  38 lines

  1. /*
  2.  *  main.h
  3.  *  AquaShade
  4.  *
  5.  *  Created by avidriss on Fri Jun 22 2001.
  6.  *  Copyright (c) 2001 __CompanyName__. All rights reserved.
  7.  *
  8.  */
  9.  
  10. #include <Carbon/Carbon.h>
  11. #include <QuickTime/QuickTime.h>
  12. #include <CoreServices/CoreServices.h>
  13.  
  14. #define kWindowTitleBarHeight 22
  15.  
  16. OSStatus pascal MinEventHandler(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData);
  17. OSStatus pascal TicTacEventHandler(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData);
  18. OSStatus pascal CloseEventHandler(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData);
  19.  
  20. void pascal EventTimer(EventLoopTimerRef inTimer, void *inUserData);
  21.  
  22. struct WindowInfo
  23. {
  24.     Rect oldSize;
  25.     WindowAttributes oldAttrs;
  26. };
  27.  
  28. enum
  29. {
  30.     kEventWindowToolbarSwitchMode        = 150
  31. };
  32.  
  33. void InitAquaShade(void);
  34. void PatchEveryWindow(void);
  35. void PatchWindow(WindowRef window);
  36. void WindowShade(WindowRef window, Boolean slide);
  37. void PlaySound(void);
  38.